<include file="Index:header"/>
<include file="Index:menu"/>
	<div class="dropdown">
	<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">
	  所有分类
	  <span class="caret"></span>
	</button>
	<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
	  <li role="presentation" class="dropdown-header">Dropdown header</li>
	  <li>
		<a href="#">编辑</a>
	  </li>
	  <li>
		<a href="#">删除</a>
	  </li>
	  <li>
		<a href="#">修改</a>
	  </li>
	</ul>
	<a href="{:U('Index/index',array('type'=>'new'))}" class="btn dropdown-toggle" type="button" >最新</a>
	<a href="{:U('Index/index',array('type'=>'hot'))}" class="btn dropdown-toggle" type="button" >热门</a>
	<a href="{:U('Index/tag')}" class="btn btn-info dropdown-toggle" type="button" >分类</a>
	</div>

	<div class="row" style="margin-top:20px;">
	  <div class="col-md-12">
		<table class="table datatable">
		  <thead>
			<tr style="background-color:#FFF; border-bottom: 2px solid #ddd; font-weight:bold;">
			  <!-- 以下两列左侧固定 -->
			  <td class="col-md-2">分类</td> 
			  <td class="col-md-10">最新</td>
			</tr>
		  </thead>
		  <tbody>
		  <volist name="rs" id="vo">
			<tr>
				<td><span class="label label-dot" style="background-color:{$vo.tag_color};"></span>{$vo.tag_name}</td>
				<td>
				<php>if($vo['infos']){
				$infos_rs=json_decode($vo['infos'],true);
				foreach($infos_rs as $k=>$v){
				$tmp=NULL;
				$tmp=explode("@@@",$v['bid']);
				</php>
					<a href="{:U('Index/view_info',array('bid'=>$tmp[0]))}" target="_blank">{$tmp[1]}</a><br>
				<php>}</php>
				<php>}else{</php>
				此分类下暂无
				<php>}</php>
				</td>
			</tr>
		   </volist>

		  </tbody>
		</table>
	  </div>
	</div>
<include file="Index:footer"/>